package com.test.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.test.domain.TAccountuser;
import org.apache.ibatis.annotations.Param;

import com.test.domain.User;

import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User>{

	User getUserByUserName(String userName);
	Boolean updatePassword(@Param("id") int id, @Param("newPassword") String newPassword);
	Boolean insterInformation(@Param("name") String name,@Param("gender") String gender,@Param("cardid") String cardid,@Param("mobile") String mobile,@Param("resume") String resume,@Param("companyid") String companyid,@Param("createtime") String createtime);
	List<User> getUserCompany();
	TAccountuser getInformById(int id);
	List<TAccountuser> getInform();//获取所有员工信息
	List<TAccountuser> getCompanyInform(String companyid);//公司负责人查看本公司员工信息
	void deleteBatchByIds(@Param("ids") String[] idsStr);
	void deleteUserRoleByUserId(int userId);
	void saveUserRole(@Param("list") List<Map<String, Integer>> params);

}
